package com.ashin.service;

import com.ashin.bean.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: Ashin
 * @Date: 2021/4/13
 * @Description: com.ashin.service
 * @Version: 1.0.0
 */
@FeignClient(name = "test-sc-provider-user",fallback=UserFallbackService.class )
public interface UserService {

    @GetMapping("/users/{id}")
    User findById(@PathVariable("id") Long id);
}